#ifndef DATACHANNEL_HPP
#define DATACHANNEL_HPP
#include "global.hpp"


class DataChannel
{
public:
    void OpenPassiveMode(boost::asio::io_context &io);
    void SendFile(const std::string &path); // 用于LIST/GET

private:
    enum class Mode
    {
        NONE,
        PASSIVE,
        ACTIVE
    };
    boost::asio::ip::tcp::acceptor passive_acceptor_;
    boost::asio::ip::tcp::socket data_socket_;
};

#endif // DATACHANNEL_HPP